package com.xiaoke.controller;

import com.xiaoke.domain.ResponseResult;
import com.xiaoke.service.CategoryService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 文章分类表(Category)表控制层
 *
 * @author xiaoke
 * @since 2023-03-17 10:25:47
 */
@RestController
@RequestMapping("/category")
public class CategoryController  {
    /**
     * 服务对象
     */
    @Resource
    private CategoryService categoryService;

    @GetMapping("/getCategoryList")
    public ResponseResult getCategoryList() {
        return categoryService.getCategoryList();
    }
}

